// Domien Nowicki
#include "QtRepairpointActivateAnimation.h"

QtRepairpointActivateAnimation::QtRepairpointActivateAnimation(): repairpoint(0)
{
}

QtRepairpointActivateAnimation::QtRepairpointActivateAnimation(const QtRepairpointActivateAnimation& rhs): QtAnimationCommand(rhs), repairpoint(rhs.repairpoint)
{
}

QtRepairpointActivateAnimation::~QtRepairpointActivateAnimation()
{
}

void QtRepairpointActivateAnimation::SetRepairpoint(QtRepairpointSprite* receiver)
{
	repairpoint = receiver;
}

void QtRepairpointActivateAnimation::Execute()
{
	if (repairpoint)
	{
		repairpoint->Reached();
	}
}

QtAnimationCommand* QtRepairpointActivateAnimation::Clone() const
{
	return new QtRepairpointActivateAnimation(*this);
}
